import request from '@/utils/request';

export async function InfoTypeList() {
  return request('/api/infoType/InfoTypeList', {
    method: 'post',
    data: {
      page: 1,
      limit: 100,
    }
  })
}

export async function InfoTypeListByQuery() {
  return request('/api/infoType/InfoTypeListByQuery', {
    method: 'post',
    data: {
      page: 1,
      limit: 100,
    }
  })
}

export async function InfoTypeAdd(params) {
  return request('/api/infoType/InfoTypeAdd', {
    method: 'post',
    data: {
      ...params,
    }
  })
}

export async function InfoTypeEdit(params) {
  return request('/api/infoType/InfoTypeEdit', {
    method: 'post',
    data: {
      ...params,
    }
  })
}

export async function InfoTypeDel(params) {
  return request('/api/infoType/InfoTypeDel', {
    method: 'post',
    data: {
      ...params,
    }
  })
}
